/**
 * 
 */
package com.uit.project.bustrip.entity;

/**
 * @author 
 *
 */
public class Customer extends BaseEntity {
	public Integer id;
	public String code;
	public String username;
	public String password;
	public String numberphone;
	public String address;
	public String email;
	public String image;
	public String updatetime;
	public Integer latitude;
	public Integer longtitude;
	public Integer status;
	
	public String createTableString(){
		return "CREATE TABLE IF NOT EXISTS Customer("
				+ "id integer primary key autoincrement,"
				+ "code text,"
				+ "username text,"
				+ "password text,"
				+ "numberphone text," 
				+ "email text," 
				+ "address text,"
				+ "image text,"
				+ "updatetime text,"
				+ "latitude interger," 
				+ "longtitude interger," 
				+ "status interger)";
	}
	public String getURLQueryString() {
		String result = "";
		result += "_Customerusername=" + username;
		result += "&_Customerpassword=" + password;
		result += "&_Customernumberphone=" + numberphone;
		result += "&_Customeremail=" + email;
		result += "&_Customeraddress=" + address;
		return result;
	}
}
